<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/axios/dist/axios.min.js">
      
    </script>
    <script>
        axios.get('https://jsonplaceholder.typicode.com/posts',{
            params:{
                userId:'1'
            }

        }).then(result=>{
            console.log(result)
        })
        //只爬取userId为1的数据
        
      
    </script>
</body>
</html>